﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Services;
using GenesiModel;


namespace Genesi
{
    public partial class Modelli : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        [WebMethod()]
        public List<Articoli> GetArticoli() {
            using (GenesiEntities dbContext =new GenesiEntities())
            {
                return dbContext.Articoli.ToList();
            }            
        }
    }
}